package com.sc.study.client;

import com.sc.study.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient(name = "general")
public interface GeneralClient {

    @GetMapping(value = "file/getFileById/{id}")
    ResultVO getFileById(@PathVariable Integer id);

    @DeleteMapping(value = "file/deleteFile/{id}")
    ResultVO deleteFileById(@PathVariable Integer id);

}
